//
//  UIImage+additions.h
//  Tool
//
//  Created by ZJ on 17/2/15.
//  Copyright © 2017年 ZJ. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UIImage (additions)
/** 通过本地图片加载Image */
+ (UIImage *)LoadImageWithPathImageName:(NSString *)imageName ofType:(NSString *)type;
/** 等比例缩放 */
+ (UIImage *)imageCompressForSize:(UIImage *)sourceImage targetSize:(CGSize)size;

+(NSData *)imageData:(UIImage *)myimage;
+(UIImage *)scaleImage:(UIImage *)image toScale:(float)scaleSize;
/**
 *  根据CIImage生成指定大小的UIImage
 *
 *  @param image CIImage
 *  @param size  图片宽度
 *
 *  @return 生成的高清的UIImage
 */
+ (UIImage *)creatNonInterpolatedUIImageFormCIImage:(CIImage *)image withSize:(CGFloat)size;

@end
